serialize

open fun serialize(encoder: <Error class: unknown class>, value: Either<T1, T2>)